/**
 * Created by Administrator on 2017/6/5 0005.
 */
/**
 * Created by Administrator on 2017/5/16 0016.
 */
var validate=function () {
    var flag=true;
    if($.trim($("#password").val())==null||""==$.trim($("#password").val())){
        $.toast("新密码不能为空");
        return false;
    }
    if($.trim($("#restpassword").val())==null||""==$.trim($("#restpassword").val())){
        $.toast("重复密码不能为空");
        return false;
    }
    if($.trim($("#password").val())!=$.trim($("#restpassword").val())){
        $.toast("新密码与重复密码不一致");
        return false;
    }
    return flag
}
$(function () {

})
